<?php
return [
    'enablePrettyUrl' => TRUE,
    'showScriptName' => FALSE,
//    'class' => 'app\components\BaseUrlManager',
    //'suffix'=>'/',
    'rules' => [
        'ie' => 'site/ie',
        'sitemap.xml' => 'site/map',
        'admin' => 'admin/',
        'search' => 'site/category',

        "http://<m\.hahamh\.net>/<controller:\w+>/<action:\w+>" => '<controller>/<action>',

        ['suffix' => '.html', 'pattern' => '<controller:\w+>/<id:\d+>/<itemId:\d+>', 'route' => '<controller>/item'],
        ['suffix' => '.html', 'pattern' => '<controller:\w+>/<id:\d+>', 'route' => '<controller>/detail'],

        ['suffix' => '', 'pattern' => '<action:\w+>', 'route' => 'site/<action>'],

//        '<controller:\w+>/<wd:.*>' => '<controller>/',
        '<controller:\w+>/<action:[a-z-A-Z]+>/<id:\d+>' => '<controller>/<action>',
        '<controller:\w+>/<action:\w+>/' => '<controller>/<action>/',
        '<controller:\w+>/' => '<controller>/',
    ]
];